import cv2 as cv
ret = cv.imread("jaychou.jpg")
#修改尺寸
resize_ret = cv.resize(ret, dsize=(200, 240))
cv.imshow("ret", resize_ret)
#输入指定键退出图片 waitKey(0)等待你输入键后，会返回你输入的ascii码
while True:
    if ord("q") == cv.waitKey(0):
        break
cv.destroyAllWindows()